<?php
/// http://192.168.18.23/master/mcGM/tmp_process/mo_idfa.php?appid=1065398803&source=mo&ip=192.168.1.20&idfa=AE808645-48AF-46CF-A63A-BF5072D6CE5A

define("APP_ROOT",dirname(__FILE__) . "/");

include APP_ROOT . "cur_db_cfg.php";
include APP_ROOT . "idfa.php";

# 解析URL数据
$row = $_GET;

$str_data = $row['idfa'];
$array_data = explode(",", $str_data);
#var_dump($array_data);
$ret_data = idfa_find("", $array_data, $dbhost_idfa, $dbaccount_idfa, $dbpwd_idfa);

if(1 == $ret_data[$row['idfa']])
{
    $tmp_data['idfa'] = '1';
}
else
{
    $tmp_data['idfa'] = '0';
}

echo urldecode(json_encode($tmp_data));

?>
